home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / gc-nov90.lha / gc-26nov90 / makefile < prev    next >
Makefile  |  1990-11-26  |  2KB  |  64 lines

  1. CCFLAGS = -O
  2. ASMB = `if test -f \`machine\`.s; then echo \`machine\`.s; else echo ""; fi; :`
  3. ASMBO = `if test -f \`machine\`.o; then echo \`machine\`.o; else echo ""; fi; :`
  4. CC = CC2.0
  5.  
  6. all:    expand expand2 gcstring-test gctest gctest2 gctest3 gctest4 \
  7.     words gcalloc.a
  8.  
  9. asmb.o:        mips.s vax.s
  10.     if test -f `machine`.s; then cc -c `machine`.s; else :; fi;
  11.     touch asmb.o
  12.  
  13. gcalloc.o:    gcalloc.C gcalloc.h asmb.o
  14.     ${CC} -c ${CCFLAGS} gcalloc.C ${ASMBO}
  15.  
  16. expand:    expand.C gcalloc.o 
  17.     ${CC} -o expand ${CCFLAGS} expand.C ${ASMBO}
  18.  
  19. expand2:    expand2.C gcalloc.o 
  20.     ${CC} -o expand2 ${CCFLAGS} expand2.C gcalloc.o ${ASMBO} 
  21.  
  22. gcstring-test:    gcstring-test.C gcstring.C gcstring.h gcalloc.o 
  23.     ${CC} -o gcstring-test ${CCFLAGS} gcstring-test.C gcstring.C gcalloc.o\
  24.            ${ASMBO} 
  25.  
  26. gctest:    gctest.C gcalloc.o 
  27.     ${CC} -o gctest ${CCFLAGS} gctest.C gcalloc.o ${ASMBO} 
  28.  
  29. gctest2:    gctest2.C gcalloc.o
  30.     ${CC} -o gctest2 ${CCFLAGS} gctest2.C gcalloc.o ${ASMBO} 
  31.  
  32. gctest3:    gctest3.C gcalloc.o 
  33.     ${CC} -o gctest3 ${CCFLAGS} gctest3.C gcalloc.o ${ASMBO} 
  34.  
  35. gctest4:    gctest4.C gcalloc.o 
  36.     ${CC} -o gctest4 ${CCFLAGS} gctest4.C gcalloc.o ${ASMBO} 
  37.  
  38. words:    words.C gcalloc.o 
  39.     ${CC} -o words ${CCFLAGS} words.C gcalloc.o ${ASMBO} 
  40.  
  41. print:
  42.     enscript gcalloc.h gcalloc.C mips.s vax.s expand.C expand2.C \
  43.          gcstring-test.C gcstring.C gcstring.h gctest.C gctest2.C \
  44.              gctest3.C gctest4.C words.C
  45.  
  46. clean:
  47.     rm -f *.BAK *.CKP *.o *_STID.*
  48.  
  49. noprogs:
  50.     rm -f expand expand2 gcstring-test gctest gctest2 gctest3 gctest4 \
  51.           words gcalloc.a
  52.  
  53. gcalloc.a:    gcalloc.o
  54.     rm -f gcalloc.a
  55.     ar q gcalloc.a gcalloc.o ${ASMBO}
  56.     ranlib gcalloc.a
  57.  
  58. tartape:
  59.     tar -cf ${TARFILE} README expand.C expand2.C gcalloc.C gcalloc.h \
  60.     gcstring-test.C gcstring.C gcstring.h gctest.C gctest2.C gctest3.C \
  61.     gctest4.C makefile mips.s vax.s words.C
  62.  
  63.  
  64.